package georah.carto.geometries
{
	import georah.carto.Extent;
	

	/**
	 * 
	 * @author yuanm
	 */
	public final class OGCPointZ extends OGCPoint
	{
		public static const TYPE:String="Point Z";

		public function OGCPointZ(srid_:int=4326, x_:Number=0.0, y_:Number=0.0, z_:Number=0.0)
		{
			SRID=srid_;
			x=x_;
			y=y_;
			z=z_;
		}

		public var z:Number=NaN;

		override public function get asText():String
		{
			return "SRID=" + SRID + ";" + OGCPointZ.TYPE + "(" + toString() + ")";
		}

		override public function get envelope():Extent
		{
			return null;
		}

		override public function toString():String
		{
			return x + " " + y + " " + z;
		}

	}
}
